package com.ddm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.Version;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import com.ddm.entity.webEntity.StandardFile;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 标准表
 * </p>
 *
 * @author 丁丁猫
 * @since 2025-01-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Standard对象", description="标准表")
public class Standard implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "标准表id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "标准名称")
    private String standardName;

    @ApiModelProperty(value = "归口单位")
    private String responsibleUnit;

    @ApiModelProperty(value = "标准号")
    private String standardNumber;

    @ApiModelProperty(value = "部门名称")
    private String departmentName;

    @ApiModelProperty(value = "起草人")
    private String draftAuthor;

    @ApiModelProperty(value = "起草单位")
    private String draftUnit;

    @ApiModelProperty(value = "适用范围")
    private String scope;

    @ApiModelProperty(value = "级别")
    private String level;

    @ApiModelProperty(value = "规范性引用文件")
    private String normativeDocuments;

    @ApiModelProperty(value = "图片url")
    private String image;

    @ApiModelProperty(value = "发布日期")
    private LocalDateTime publicationDate;

    @ApiModelProperty(value = "实施日期")
    private LocalDateTime implementationDate;



    //数据库中没有的字段

    @ApiModelProperty(value = "标准对应的文件列表")
    @TableField(exist = false)
    private List<StandardFile> standardFiles;

    // 临时字段：用于接收文件信息
    @TableField(exist = false)
    private Integer fileId;

    @TableField(exist = false)
    private Integer standardId;

    @TableField(exist = false)
    private String filePath;


}
